package ltd.hyangyang.vegetable.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.List;

@Data
@TableName("classification")
public class ClassificationEntity {

    @TableId("class_id")
    private Integer classId ;

    private String classLabel;

    //学名
    private String scientificName;

    //特征
    private String features;

    //产地
    private String originPlace;

    //用途
    private String purpose;


    private Integer parentId;

    private String imageUrl;


    private Integer distinguishNumber;

    @TableField(exist = false)
    private List<ClassificationEntity> child;
}
